﻿using S7.Net;
using SCADALight.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MonitorPrism_Practice.Model
{
    public class InterfaceReciveDataModel:BindableBase
    {
        private string _Name;
        public string Name
        {
            get { return _Name; }
            set
            {
                SetProperty(ref _Name, value);
            }
        }
        private object _value;
        public object Value
        {
            get { return _value; }
            set
            {
                SetProperty(ref _value, value);
            }
        }
        private string _address ;
        public string Address
        {
            get { return _address; }
            set
            {
                SetProperty(ref _address, value);
            }
        }
        
        public int DbIndex {  get; set; } = default(int);

        public int DbDataIndex {  get; set; } = default;
       
        public VarType DataType { get; set; }

    }
    public class ReciveDataEvent : PubSubEvent<InterfaceReciveDataModel>
    {
    }
}
